Is it possible to search for a font type within a module?

So recently i have started to find some issues in module where some bullet points in a module aren't actually bullets points but its for some reason WingDing font of a smiley face just sized down really small to look like a bullet point.

 

Im not sure if this was some error when a user copied over data or intentional as a joke of sorts but it is causing issues when we try to run it through RPE.

Is it at all possible to search through a module for a font type (I.E. WingDing font etc...) or is this looking like Im going to be searching for a needle in a stack of needles? 


MrNiceGuy - Wed Apr 18 11:13:13 EDT 2018

Re: Is it possible to search for a font type within a module?
PekkaMakinen - Thu Apr 19 23:55:55 EDT 2018

Yes, the fonts are stored in the Rich Text for Object Text attribute. Firstly, you can see the Rich Text Format (RTF) settings by including a Layout DXL column from DOORS library to view: start to insert a column, select Browse and from "A library of DXL functions.."  insert a DXL column "Display rich text codes".

From this you can see that if somebody has used the Wingdings font it is inserted into the RTF code as \fcharset2 Wingdings;} or something like that. So if in DXL you then read the richText of Object Text, you can find those objects which have this Wingdings font in use:

Module m = current
Object o = null
string ObjText = ""

for o in m do
{
   //Read the richText of Object Text attirbute for an object
   ObjText = richText o."Object Text"
   //If the RTF contains Wingdings, print the object ID
   if ((ObjText > "") && (matches("Wingdings", ObjText))) print identifier(o) "\n"
}